package com.lky.service.impl;

import com.lky.domain.Planetype;
import com.lky.mapper.PlanetypeMapper;
import com.lky.service.PlanetypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 名称:PlanetypeServiceImpl
 * 描述:PlanetypeService的实现类
 *
 * @version 1.0
 * @author:likaiyang
 * @datetime:2023-11-22 20:21
 */
@Service
public class PlanetypeServiceImpl implements PlanetypeService {

    @Autowired(required = false)
    private PlanetypeMapper planetypeMapper;

    @Override
    public Planetype findPlanetypeById(Integer id) {
        return planetypeMapper.findPlanetypeById(id);
    }

    @Override
    public List<Planetype> findAllPlanetype() {
        return planetypeMapper.findAllPlanetype();
    }

    @Override
    public int insertPlanetype(Planetype planetype) {
        return planetypeMapper.insertPlanetype(planetype);
    }

    @Override
    public int updatePlanetypeById(Planetype planetype) {
        return planetypeMapper.updatePlanetypeById(planetype);
    }

    @Override
    public int deletePlanetypeById(Integer id) {
        return planetypeMapper.deletePlanetypeById(id);
    }

    @Override
    public List<Planetype> findPlanetypeByStr(String str) {
        return planetypeMapper.findPlanetypeByStr(str);
    }
}
